import request from '@/utils/request.js'

// 获取权限数据
export function sysyPermission() {
  return request({
    url: '/sys/permission'
  })
}

// 新增权限数据
export function sysyPermissionPost(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}

// 删除权限数据
export function sysyPermissionDelete(id) {
  return request({
    url: '/sys/permission/' + id,
    method: 'delete'
  })
}

// 修改权限数据
export function sysyPermissionPut(data) {
  return request({
    url: '/sys/permission/' + data.id,
    method: 'put',
    data
  })
}


